package sk.uniza.fri.cerviix.server.network;

import java.io.DataInputStream;
import java.io.IOException;

import sk.uniza.fri.cerviix.server.Game;

public abstract class ClientMessage
{
	protected DataInputStream stream;
	protected Client client;
	
	public ClientMessage(Client client)
	{
		this.client = client;
	}

	public void attachStream(DataInputStream stream)
	{
		this.stream = stream;
	}
	
	public abstract void receive() throws IOException;
	public abstract void run(Game game);
}
